package com.d3works.apps.account.service;

import com.d3works.apps.account.db.Move;
import com.d3works.apps.base.db.Period;
import com.d3works.auth.db.User;
import com.d3works.db.Query;
import com.d3works.exception.D3worksException;
import com.d3works.meta.CallMethod;

public interface PeriodServiceAccount {

  public Query<Move> getMoveListByPeriodAndStatusQuery(Period period, int status);

  @CallMethod
  public boolean isManageClosedPeriod(Period period, User user) throws D3worksException;

  @CallMethod
  public boolean isTemporarilyClosurePeriodManage(Period period, User user) throws D3worksException;

  @CallMethod
  public boolean isAuthorizedToAccountOnPeriod(Period period, User user) throws D3worksException;
}
